package cn.zktr.Personnel.model.pojos;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the per_sly_sbe database table.
 * 
 */
@Entity
@Table(name="per_sly_sbe")
@NamedQuery(name="PerSlySbe.findAll", query="SELECT p FROM PerSlySbe p")
public class PerSlySbe implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="PER_SLY_SBE_SBEID_GENERATOR", sequenceName="SEQ1",allocationSize=1,initialValue=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="PER_SLY_SBE_SBEID_GENERATOR")
	private int sbeid;

	//bi-directional many-to-one association to PerPmsEmp
	@ManyToOne
	@JoinColumn(name="EMPID")
	private PerPmsEmp perPmsEmp;

	//bi-directional many-to-one association to PerSlySz
	@ManyToOne
	@JoinColumn(name="SZID")
	private PerSlySz perSlySz;

	public PerSlySbe() {
	}

	public int getSbeid() {
		return this.sbeid;
	}

	public void setSbeid(int sbeid) {
		this.sbeid = sbeid;
	}

	public PerPmsEmp getPerPmsEmp() {
		return this.perPmsEmp;
	}

	public void setPerPmsEmp(PerPmsEmp perPmsEmp) {
		this.perPmsEmp = perPmsEmp;
	}

	public PerSlySz getPerSlySz() {
		return this.perSlySz;
	}

	public void setPerSlySz(PerSlySz perSlySz) {
		this.perSlySz = perSlySz;
	}

}